package me.young4979.android.pluginapp1;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import me.young4979.android.library1.Lib1Activity;

public class Plugin1Activity2 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_plugin12);
        String str = getIntent().getStringExtra("data");
        ((TextView)findViewById(R.id.textview)).setText(str);
        findViewById(R.id.btn1).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(Plugin1Activity2.this, Lib1Activity.class);
                startActivity(intent);
            }
        });
        ((ImageView)findViewById(R.id.img)).setImageResource(R.mipmap.test);
    }
}
